package com.chagee.channel.server.event.service;

import com.chagee.channel.api.bo.ocr.*;
import com.fasterxml.jackson.core.JsonProcessingException;

/**
 * ocr
 *
 * @author: chang.jiawei
 * @date: 2024/01/18
 */
public interface OcrService {

    FoodOperationLicenseOcrDTO ocrFoodOperationLicense(String fileUrl);

    BusinessLicenseOcrDTO ocrBusinessLicense(String fileUrl);

    BankAccountLicenseOcrDTO ocrBankAccountLicense(String fileUrl);

    /**
     * ocr识别身份证正面
     * @param frontUrl
     * @return
     */
    IdCardFrontDTO ocrIdCardFront(String frontUrl);

    /**
     * ocr识别身份证背面
     * @param backUrl
     * @return
     */
    IdCardBackDTO ocrIdCardBack(String backUrl);


    /**
     * ocr识别银行卡
     * @param fileUrl
     * @return
     */
    BankCardDTO ocrBankCard(String fileUrl);

    HKBusinessLicenseOcrDTO ocrHKBusinessLicense(String fileUrl) throws JsonProcessingException;
}
